package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户留存的联系人表
 * </p>
 *
 * @author wanghai
 * @since 2022-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_contacts")
@ApiModel(value="Contacts对象", description="客户留存的联系人表")
public class Contacts extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联客户id")
    @TableField("consumer_id")
    private Integer consumerId;

    @OperateLogFiled(name = "姓名")
    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @OperateLogFiled(name = "联系方式")
    @ApiModelProperty(value = "电话号")
    @TableField("telephone")
    private String telephone;

    @OperateLogFiled(name = "级别")
    @ApiModelProperty(value = "级别 1-10，数字越大级别越高,默认0")
    @TableField("level")
    private Integer level;

    @OperateLogFiled(name = "标签")
    @ApiModelProperty(value = "标签")
    @TableField("tag")
    private String tag;

    @OperateLogFiled(name = "备注")
    @ApiModelProperty(value = "备注 限制200字")
    @TableField("remark")
    private String remark;


}
